<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" type="text/css" href="{$cfg.url.css}html.css"/>
  <link rel="stylesheet" type="text/css" href="{$cfg.url.css}common.css"/>
<title>页头</title>
{literal}
<script>
 window.onload=function (){
  setInterval("document.getElementById('time').innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
 }
 
function show(){
var date = new Date(); //日期对象
var now = "";
now = date.getFullYear()+"年"; //读英文就行了
now = now + (date.getMonth()+1)+"月"; //取月的时候取的是当前月-1如果想取当前月+1就可以了
now = now + date.getDate()+"日";
now = now + date.getHours()+"时";
now = now + date.getMinutes()+"分";
now = now + date.getSeconds()+"秒";
now = now + ' 星期'+'日一二三四五六'.charAt(new Date().getDay());
document.getElementById("nowDiv").innerHTML = now; //div的html是now这个字符串 
setTimeout("show()",1000); //设置过1000毫秒就是1秒，调用show方法
}
</script>
{/literal}
</head>

<body onload="show()"> <!-- 网页加载时调用一次 以后就自动调用了-->
<div class="loge">SBN管理系统</div>
<div id="nowDiv"></div>

</body>
</html>
